
#ifndef __HASHCOMMON_H__
#define __HASHCOMMON_H__

#include <stdio.h>
#include <ctype.h>

struct SFileHashValue
{
	unsigned long m_iHashIndex;
	unsigned long m_iName1;
	unsigned long m_iName2;
};
class CHashCommon
{
	unsigned long m_decryptTable[0x500];

public:
	CHashCommon()
	{
		_calDecryptTable();
	}
	virtual ~CHashCommon()
	{

	}

	unsigned long hashString( const char *lpszFileName, unsigned long dwHashType );
	bool hashFileName( const char *pbKey, SFileHashValue & hashValue );

private:
	void _calDecryptTable();
	

};

#endif // __HASHCOMMON_H__